package com.jianyun.jyzs.bean;

import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;

import java.util.List;

/**
 * Created by yangshijun on 2018/10/9.
 */

public class ContactBean extends Response {

    private int pageCnt;

    private List<DeptChilden> DeptChilden;

    private boolean result;

    private List<ContactUser> list;

    private String pageIndex;

    private String message;

    public int getPageCnt() {
        return pageCnt;
    }

    public void setPageCnt(int pageCnt) {
        this.pageCnt = pageCnt;
    }

    public List<ContactBean.DeptChilden> getDeptChilden() {
        return DeptChilden;
    }

    public void setDeptChilden(List<ContactBean.DeptChilden> deptChilden) {
        DeptChilden = deptChilden;
    }

    public boolean isResult() {
        return result;
    }

    public void setResult(boolean result) {
        this.result = result;
    }

    public List<ContactUser> getList() {
        return list;
    }

    public void setList(List<ContactUser> list) {
        this.list = list;
    }

    public String getPageIndex() {
        return pageIndex;
    }

    public void setPageIndex(String pageIndex) {
        this.pageIndex = pageIndex;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public class ContactUser extends Response {


        private Integer Id; //主键
        private int OrderRank;
        private String unitId;
        private String id;
        private String name;
        private String userName;
        private String email;
        private String phoneNum;
        private String company;
        private String department;
        private String sex;
        private String iconPaths;
        private int isContact;


        public int getOrderRank() {
            return OrderRank;
        }

        public void setOrderRank(int orderRank) {
            OrderRank = orderRank;
        }

        public String getUnitId() {
            return unitId;
        }

        public void setUnitId(String unitId) {
            this.unitId = unitId;
        }

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getUserName() {
            return userName;
        }

        public void setUserName(String userName) {
            this.userName = userName;
        }

        public String getEmail() {
            return email;
        }

        public void setEmail(String email) {
            this.email = email;
        }

        public String getPhoneNum() {
            return phoneNum;
        }

        public void setPhoneNum(String phoneNum) {
            this.phoneNum = phoneNum;
        }

        public String getCompany() {
            return company;
        }

        public void setCompany(String company) {
            this.company = company;
        }

        public String getDepartment() {
            return department;
        }

        public void setDepartment(String department) {
            this.department = department;
        }

        public String getSex() {
            return sex;
        }

        public void setSex(String sex) {
            this.sex = sex;
        }

        public String getIconPaths() {
            return iconPaths;
        }

        public void setIconPaths(String iconPaths) {
            this.iconPaths = iconPaths;
        }

        public int getIsContact() {
            return isContact;
        }

        public void setIsContact(int isContact) {
            this.isContact = isContact;
        }

        @Override
        public String toString() {
            return "ContactUser{" +
                    "OrderRank=" + OrderRank +
                    ", unitId='" + unitId + '\'' +
                    ", id='" + id + '\'' +
                    ", name='" + name + '\'' +
                    ", userName='" + userName + '\'' +
                    ", email='" + email + '\'' +
                    ", phoneNum='" + phoneNum + '\'' +
                    ", company='" + company + '\'' +
                    ", department='" + department + '\'' +
                    ", sex='" + sex + '\'' +
                    ", iconPaths='" + iconPaths + '\'' +
                    ", isContact=" + isContact +
                    '}';
        }
    }


    public class DeptChilden extends Response {
        private String deptwbs;

        private String deptPwbs;

        private String DeptName;

        private String DeptId;

        public void setDeptwbs(String deptwbs) {
            this.deptwbs = deptwbs;
        }

        public String getDeptwbs() {
            return this.deptwbs;
        }

        public void setDeptPwbs(String deptPwbs) {
            this.deptPwbs = deptPwbs;
        }

        public String getDeptPwbs() {
            return this.deptPwbs;
        }

        public void setDeptName(String DeptName) {
            this.DeptName = DeptName;
        }

        public String getDeptName() {
            return this.DeptName;
        }

        public void setDeptId(String DeptId) {
            this.DeptId = DeptId;
        }

        public String getDeptId() {
            return this.DeptId;
        }

        @Override
        public String toString() {
            return "DeptChilden{" +
                    "deptwbs='" + deptwbs + '\'' +
                    ", deptPwbs='" + deptPwbs + '\'' +
                    ", DeptName='" + DeptName + '\'' +
                    ", DeptId='" + DeptId + '\'' +
                    '}';
        }
    }

    @Override
    public String toString() {
        return "ContactBean{" +
                "pageCnt=" + pageCnt +
                ", DeptChilden=" + DeptChilden +
                ", result=" + result +
                ", list=" + list +
                ", pageIndex='" + pageIndex + '\'' +
                ", message='" + message + '\'' +
                '}';
    }
}
